import request from '@/utils/request'

// 查询扫码枪管理列表
export function listScanner(query) {
  return request({
    url: '/equipment/scanner/list',
    method: 'get',
    params: query
  })
}

// 查询扫码枪管理详细
export function getScanner(scannerId) {
  
  return request({
    url: `/equipment/scanner/${scannerId}`,
    method: 'get'
  })
}

// 新增扫码枪管理
export function addScanner(data) {
  return request({
    url: '/equipment/scanner',
    method: 'post',
    data: data
  })
}

// 修改扫码枪管理
export function updateScanner(data) {
  return request({
    url: '/equipment/scanner',
    method: 'put',
    data: data
  })
}

// 删除扫码枪管理
export function delScanner(scannerId) {
  return request({
    url: `/equipment/scanner/${scannerId}`,
    method: 'delete'
  })
}
